﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RewardEdit.aspx.cs" Inherits="FYPHP.RewardEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<h2>Update Product Details</h2>
<table cellpadding="5" cellspacing="5" width="722" border="1" bordercolor="#aaa" align="center" style="border-collapse: collapse; border-color: #aaaaaa; text-align: center">
 <tr><td width="330px">
 <a href="\uploads\reward\<% Response.Write(getPic()); %>" title="" class="thickbox">
<img src="\uploads\reward\<% Response.Write(getPic()); %>" alt="" height="330px" width="330px" />
</a><br /><i style="font-size: 11px">Click to view larger size.</i>
<br /><hr />
<asp:FileUpload id="FileUpload1" runat="server">
       </asp:FileUpload>
        <asp:Button id="UploadButton" Text="Upload file" OnClick="UploadButton_Click" runat="server">
       </asp:Button> 
</td>

<td style="text-align: left;" valign="top">
<table border="0" cellpadding="5" cellspacing="5" >
<tr><td width="80px">Name</td><td>:</td><td><asp:TextBox ID="txtName" runat="server" Height="18px" Width="230px"></asp:TextBox></td>
</tr>
<tr><td valign="top">Description</td><td valign="top">:</td><td><asp:TextBox ID="txtDesc" runat="server" 
        Height="100px" Width="230px" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr><td>Points Needed</td><td>:</td><td><asp:TextBox ID="txtPoints" runat="server" Height="18px" Width="230px"></asp:TextBox></td>
</tr>
<tr><td>Quantity</td><td>:</td><td><asp:TextBox ID="txtQuan" runat="server" Height="18px" Width="230px"></asp:TextBox></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" align="right">
    <asp:Button ID="btnUpdate" runat="server" Text="Update" 
        onclick="btnUpdate_Click" />
<asp:Button ID="btnReset" runat="server" Text="Reset" onclick="btnReset_Click" />
    </td></tr>
</table><br />
<a href="RewardsManage.aspx">Back to Rewards Manage</a>
</asp:Content>

